<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>轮播图</title>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
		}
		div{
			width: 400px;
			height: 200px;
			margin: 0 auto;
			margin-top: 100px;
			position: relative;
			overflow: hidden;
			
		}
		ul{
			height: 200px;
			width: 2000px;
			background-color: black;

			position: absolute;
			top: 0;
			left: 0;
			animation: move 10s linear 0s infinite normal;
			
		}
		ul:hover{
			animation-play-state: paused;
		}
		ul:hover li{
			opacity: 0.5;
		}
		ul li:hover{
			opacity: 1;
		}
		@keyframes  move{
			from{
				left: 0;
			}
			to{
				left: -1200px;
			}

		}
		ul li{
			list-style: none;
			width: 200px;
			height: 200px;
			text-align: center;
			float: left;
			opacity: 0.5;
			/*border: 1px solid green;*/
		}
		ul li img{
			width: 200px;
			height: 200px;
		}

	</style>
</head>
<body>
	
	<div>
		<ul>
			<li><img src="../images/1.jpg"></li>
			<li><img src="../images/2.jpg"></li>
			<li><img src="../images/3.jpg"></li>
			<li><img src="../images/9.jpg"></li>
			<li><img src="../images/5.jpg"></li>
			<li><img src="../images/11.jpg"></li>
			<li><img src="../images/1.jpg"></li>
			<li><img src="../images/2.jpg"></li>
			<li><img src="../images/9." alt=""></li>
		</ul>
	</div>
</body>
</html>